Release 10.1A: OpenEdge Development:
Messaging and ESB
Publishing a message to a Pub/Sub topic
The following general steps outline how a 4GL application publishes a message to a topic:
- The application obtains a handle to the Pub/Sub Session object.
- The application creates a message by calling one of the following in the Session object: createBytesMessage procedure, createDataSetMessage procedure, createHeaderMessage procedure, createMapMessage procedure, createMultipartMessage procedure, createStreamMessage procedure, createTempTableMessage procedure, or createXMLMessage procedure.
- The application populates the header fields, properties, and body of the message.
- The application calls the publish procedure in the Session object with the message handle and the name of a topic as input parameters.
- If the application is not going to use the message after publishing, it deletes the message.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |